<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>零售管理系統</title>
<style type="text/css">
body{
	font-size:12px;
	background-image: url(images/bg.gif);
	background-repeat: repeat;
}
ul,li,h2{margin:0;padding:0;}
ul{list-style:none;}
a {  
	border: 1px #A498BD solid; color: #4D2078; clip:  height; background-color: #87CEEB; 
	height: 20px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; width: 130px: 0px}
a:hover {  
	border: 1px #605080 solid; color: #9900CC; clip:  height; background-color: #1E90FF;
	height: 20px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; width: 130px: 0px}
#top{
	width:909px;
	height:26px;
	background-image: url(images/h2bg.gif);
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	background-repeat: repeat-x;
}
#top h2{
	width:150px;
	height:24px;
	float:left;
	font-size:12px;
	text-align:center;
	line-height:20px;
	color:#0066FF;
	font-weight: bold;
	padding-top: 2px;
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-right-color: #99BBE8;
	border-left-color: #99BBE8;
}
#top .jg {
	width: 5px;
	float: left;
	background-color: #DCE6F5;
	height: 26px;
}
#topTags{
	width:740px;
	height:24px;
	float:left;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	padding-top: 2px;
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-right-color: #99BBE8;
	border-left-color: #99BBE8;
	padding-left: 10px;
}
#topTags ul li{
	float:left;
	width:100px;
	height:21px;
	margin-right:4px;
	display:block;
	text-align:center;
	cursor:pointer;
	padding-top: 3px;
	color: #15428B;
	font-size: 12px;
}
#main{
	width:909px;
	height:501px;
	background-color:#F5F7E6;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
}
#main .jg {
	width: 5px;
	float: left;
	background-color: #DFE8F6;
	height: 500px;
}
#leftMenu{
	width:150px;
	height:500px;
	background-color:#DAE7F6;
	float:left;
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-right-color: #99BBE8;
	border-left-color: #99BBE8;
}
#leftMenu ul{margin:10px;}
#leftMenu ul li{
	width:130px;
	height:22px;
	display:block;
	cursor:pointer;
	text-align:center;
	margin-bottom:5px;
	background-color: #D9E8FB;
	background-image: url(images/tabbg01.gif);
	background-repeat: no-repeat;
	background-position: 0px 0px;
	padding-top: 2px;
	line-height: 20px;
}
#leftMenu ul li a{
	color:#000000;
	text-decoration:none;
	background-image: url(images/tb-btn-sprite_03.gif);
	background-repeat: repeat-x;
}
#content{
	width:750px;
	height:500px;
	float:left;
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-right-color: #99BBE8;
	border-left-color: #99BBE8;
	background-color: #DAE7F6;
}
.content{
	width:740px;
	height:490px;
	display:none;
	padding:5px;
	overflow-y:auto;
	line-height:30px;
	background-color: #FFFFFF;
}
#footer{
	width:907px;
	height:26px;
	background-color:#FFFFFF;
	line-height:20px;
	text-align:center;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-right-color: #99BBE8;
	border-left-color: #99BBE8;
	background-image: url(images/h2bg.gif);
	background-repeat: repeat-x;
}
.content1 {width:740px;height:490px;display:block;padding:5px;overflow-y:auto;line-height:30px;}
</style>
<script type="text/javascript">
window.onload=function(){
function $(id){return document.getElementById(id)}
var menu=$("topTags").getElementsByTagName("ul")[0];
var tags=menu.getElementsByTagName("li");
var ck=$("leftMenu").getElementsByTagName("ul")[0].getElementsByTagName("li");
var j;

for(i=0;i<ck.length;i++){
ck[i].onclick=function(){
$("welcome").style.display="none"
clearMenu();
this.style.background='url(images/tabbg02.gif)'

for(j=0;j<5;j++){
if(this==ck[j]){
if($("p"+j)==null){
openNew(j,this.innerHTML);
 }
clearStyle();
$("p"+j).style.background='url(images/tabbg1.gif)';
clearContent();
$("c"+j).style.display="block";
   }
 }
return false;
  }
 }
function openNew(id,name){
var tagMenu=document.createElement("li");
tagMenu.id="p"+id;
tagMenu.innerHTML=name+"&nbsp;&nbsp;"+"<img src='images/off.gif' style='vertical-align:middle'/>";
tagMenu.onclick=function(evt){
	clearMenu();
	ck[id].style.background='url(images/tabbg02.gif)'
	clearStyle();
	tagMenu.style.background='url(images/tabbg1.gif)';
	clearContent();
	$("c"+id).style.display="block";
}
tagMenu.getElementsByTagName("img")[0].onclick=function(evt){	
evt=(evt)?evt:((window.event)?window.event:null);
if(evt.stopPropagation){evt.stopPropagation()} 
this.parentNode.parentNode.removeChild(tagMenu);
var color=tagMenu.style.backgroundColor;

if(tags.length==0){
	clearContent();	
}
else{
	tags[tags.length-1].onclick();
}
if(color=="#ffff00"||color=="yellow"){	
if(tags.length-1>=0){
clearStyle();
tags[tags.length-1].style.background='url(images/tabbg1.gif)';
clearContent();
var cc=tags[tags.length-1].id.split("p");
$("c"+cc[1]).style.display="block";
clearMenu();
ck[cc[1]].style.background='url(images/tabbg1.gif)';
 }
else{	
clearContent();
clearMenu();
$("welcome").style.display="block"
   }
  }
}
menu.appendChild(tagMenu);
}
function clearMenu(){
for(i=0;i<ck.length;i++){
ck[i].style.background='url(images/tabbg01.gif)';
 }
}

function clearStyle(){
for(i=0;i<tags.length;i++){
menu.getElementsByTagName("li")[i].style.background='url(images/tabbg2.gif)';
  }
}

function clearContent(){
for(i=0;i<5;i++){
$("c"+i).style.display="none";
 }
}

}
</script>
</head>
<body>
<div id="top">
<h2>功能模塊</h2>
<div class=jg></div>
<div id="topTags">
<ul>
</ul>
</div>
</div>
<div id="main">
<div id="leftMenu">
<br>
<center>
<h2><a href="#" onclick='window.open("http://localhost:8080/RetailSystem/showProduct.jsp","");'>收款台</a></h2>
</center>
<ul>
<li>貨物管理</li>
<li>倉存管理</li>
<li>日結</li>
<li>會員管理</li>
<li>財務報表</li>
</ul>
</div>
<div class=jg></div>
<div id="content">
<div id="welcome" class="content" style="display:block;">
  <div align="center"> 
    <p>&nbsp;</p>
    <p><strong>歡迎使用零售管理系統！</strong></p>
    <p>&nbsp;</p>
    </div>
</div>
<div id="c0" class="content"><iframe id="ifrm1" frameborder="0" width="100%" height="100%" src="Product/ProductMain.jsp"></iframe></div>
<div id="c1" class="content"><iframe id="ifrm2" frameborder="0" width="100%" height="100%" src="Inventory/InventoryMain.jsp"></iframe></div>
<div id="c2" class="content"><iframe id="ifrm3" frameborder="0" width="100%" height="100%" src="EndDate"></iframe></div>
<div id="c3" class="content"><iframe id="ifrm4" frameborder="0" width="100%" height="100%" src="Member/MemberMain.jsp"></iframe></div>
<div id="c4" class="content"><iframe id="ifrm5" frameborder="0" width="100%" height="100%" src="Report/Report.jsp"></iframe></div>
</div>
</div>
<div id="footer">Java中級課程設計</div>
</body>
</html>